# -*- coding: utf-8 -*-

from django.shortcuts import render_to_response, HttpResponseRedirect
from django.template import RequestContext
from django.http import HttpResponse, Http404
from django.conf import settings
import json



def index(request):
    """
    @attention: 首页
    """
    template_name = 'index.html'
    return render_to_response(template_name, locals(), context_instance=RequestContext(request))





def static(request, template_name):
    """
    @attention: 静态模板渲染
    """
    try:
        return render_to_response(template_name + '.html', locals(), context_instance=RequestContext(request))
    except:
        raise Http404
